#public int col, row;//row and column 
#public double value;//The value of the array 
#public int nPOS; 
#public int nWordLen; 
#public string sWord; 
#//The possible POS of the word related to the segmentation graph 
#public ArrayChainItem next; 
class ArrayChainItem(object):
    def __init__(self):
        self.col = 0
        self.row = 0
        self.value = 0.0
        self.nPOS = 0
        self.nWordLen = 0
        self.sWord = None #string
        self.next = None #ArrayChainItem

#//The word  
#public string sWord; 
#
#//the POS of the word 
#public int nPOS; 
#
#//The -log(frequency/MAX) 
#public double dValue; 
class WordResult(object):
    def __init__(self):
        self.sWord = None #string
        self.nPOS = 0
        self.dValue = 0.0

#public int nWordLen; 
#
#//The word  
#public string sWord; 
#
#//the process or information handle of the word 
#public int nPOS; 
#
#//The count which it appear 
#public int nFrequency; 
class WordItem(object):
    def __init__(self):
        self.nWordLen = 0
        self.sWord = None
        self.nPOS = 0
        self.nFrequency = 0

#//The count number of words which initial letter is sInit 
#public int nCount; 
#
#//The  head of word items 
#public WordItem[] WordItems; 
class IndexTableItem(object):
    def __init__(self):
        self.nCount = 0
        self.WordItems = []
 
#public WordItem data; 
#public WordChain next; 
class WordChain(object):
    def __init__(self):
        self.data = None #WordItem
        self.next = None #WordChain

#//The count number of words which initial letter is sInit 
#public int nCount; 
#
#//The number of deleted items in the index table 
#public int nDelete; 
#
#//The head of word items 
#public WordChain pWordItemHead; 
class ModifyTableItem(object):
    def __init__(self):
        self.nCount = 0
        self.nDelete = 0
        self.pWordItemHead = None #WordChain
